<?
require "include/bittorrent.php";
dbconn(false);
loggedinorreturn();

$games = array("winterbells","multitask","curveball","helicopter","crabball","kickups","zelda","mario","asteroids","breakout","invaders","pacman","lander","snake","tetris");

if (in_array($_GET["game"],$games))
$game = $_GET["game"];
else
$game = "winterbells";

stdhead("Arcade (" . ucwords($game) . ")");

?>

<p align=center><form method=get name=gamejump>
Choose A Game: <select name=game onchange="if(this.options[this.selectedIndex].value != -1){ forms['gamejump'].submit() }">
<?
for($i=0;$games[$i];$i++)
print("<option value=" . $games[$i] . ($game == $games[$i] ? " selected>" : ">") . ucwords($games[$i]) . "</option>\n");
?>
</select>
</form></p>

<?
if ($game != "zelda" && $game != "mario")
{
if ($game == "winterbells")
{
?>

<object width="750" height="500">
<param name="movie" value="winterbells.swf">
<embed src="winterbells.swf" width="750" height="500">
</embed>
</object>

<?
}
else if ($game == "multitask")
{
?>

<object width="740" height="530">
<param name="movie" value="http://www.notdoppler.com/files/multitask.swf">
<embed src="http://www.notdoppler.com/files/multitask.swf" width="740" height="530">
</embed>
</object>

<?
}
else
{
?>

<object width="720" height="540">
<param name="movie" value="/games/<?=$game?>.swf">
<embed src="/games/<?=$game?>.swf" width="720" height="540">
</embed>
</object>

<?
}
}
else
{
if ($game == "zelda")
{
$romsize = "131088";
}
else
{
$romsize = "393232";
}
?>

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
        width="512"
        height="480"
        id="vNES" name="vNES">

        <param name="code" value="AppletGui">
        <param name="archive" value="<?=$SITEURL?>/games/vnes-070714.jar">
        <param name="sound" value="on" />
        <param name="timeemulation" value="on"/ >
        <param name="fps" value="off" />

        <param name="stereo" value="off"/ >
        <param name="rom" value="<?=$SITEURL?>/games/<?=$game?>.zig">
        <param name="showsoundbuffer" value="off" />
        <param name="scale" value="on" />
        <param name="scanlines" value="off" />
        <param name="nicesound" value="on" />
        <param name="romsize" value=<?=$romsize?> />
        <param name="type" value="application/x-java-applet;version=1.4.1">
        <param name="scriptable" value="true">

        <param name="codebase" value="/">

  <COMMENT>
    <embed type="application/x-java-applet;version=1.4.1"
           name="vNES"
           code="AppletGui"
           archive="<?=$SITEURL?>/games/vnes-070714.jar"
           sound="on"
           timeemulation="on"
           fps="off"
           stereo="off"
           rom="<?=$SITEURL?>/games/<?=$game?>.zig"
           showsoundbuffer="off"
           scale="on"
           scanlines="off"
           nicesound="on"
           romsize=<?=$romsize?>
           width="512"
           height="480"
           scriptable="true"
           codebase="/"
           pluginspage="http://java.sun.com/products/plugin/index.html#download"
           alt="..">
      <noembed>..</noembed>
    </embed>
  </COMMENT>
</object>

<br>
<b>Start == Enter </b>&nbsp;|&nbsp;<b> Select == Ctrl </b>&nbsp;|&nbsp;<b> B == Z </b>&nbsp;|&nbsp;<b> A == X</b>

<?
}
?>

<p align=center><a href=highscores.php><b>View Highscores</b></a></p>

<?
stdfoot();
?>
